<script type="text/javascript" language="javascript" src="../../ui/js/column.js"></script>
<div class="content_title">栏目管理</div>
<?php foreach($column1 as $column): ?>
	<?php echo "<div class='category' name='".$column['id']."'>".$column['column']."</div>" ?>
	<ul class="category2">
		<?php
			foreach($column['column2'] as $column2){
				echo "<li name='".$column2['id']."'>".$column2['column']."</li>";
			}
		?>
	</ul>
<?php endforeach ?>
    <form class="add_column">
        增加一级科目：
        <input type="text" maxlength="10" name="column" />
        模板：
        <input type="text" maxlength="10" name="model" />
        <input class="subcolumn" type="button" value="增加" />
        <br />
        增加二级科目：
        <select class="column1">
			<?php
				foreach($column1 as $item){
					echo "<option name='".$item['id']."'>".$item['column']."</option>";
				}
			?>
        </select>
        <input type="text" maxlength="10" name="column2" />
        <input class="subcolumn2" type="button" value="增加" />
    </form>
</div>
<div class="modify_column">
	<form>
		<input type="text" name="column_tile" />
		<input type="hidden" name="id" />
		<input type="button" class="submodcolumn" value="修改" />
		<input type="button" class="delmodcolumn" value="删除" />
		<input type="button" class="cancel" value="取消" />
	</form>
</div>